﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

public partial class Perfil_Perfil : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Usuario"] == null || Session["TipoUsuario"] == null)
            Response.Redirect("../Login.aspx");
    }
    [WebMethod(EnableSession = true)]
    public static Pessoa carregar()
    {
        return Usuario.findPessoaById(((Usuario)System.Web.HttpContext.Current.Session["Usuario"]).id);
    }
}